import { TodoApi } from '@/api'
import { formatDate } from '@/filters'
// 本单位审核列表
class TodoModel {
    constructor() {
        this.api = new TodoApi()
    }

    async getUnitAuditList(data) {
        const res = await this.api.getUnitAuditList(data)
        return res
    }

    async getReportList(data) {
        const res = await this.api.getReportList(data)
        return res
    }

    async getTasks(data) {
        const res = await this.api.getTasks(data)
        res.list.forEach(ele => {
            ele.firstInspetctTime = formatDate(ele.firstInspetctTime)
        })
        return res
    }
}

export default TodoModel
